#!/bin/bash 
>num.txt
read -p "请输入一个数:" num
num_c=`echo $num|wc -L`
for i in `seq $num_c -1 1`
do
	echo $num|cut -c $i>>num.txt
done
cat num.txt |tr -d "\n"
echo ""
